package top.riske.animalhazardassessment.common.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * swagger配置
 */
@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
//                .components(new Components()
//                        // 设置 spring security jwt accessToken 认证的请求头 Authorization: Bearer xxx.xxx.xxx
//                        .addSecuritySchemes("authScheme", new SecurityScheme()
//                                .type(SecurityScheme.Type.HTTP)
//                                .bearerFormat("JWT")
//                                .scheme("Bearer")))
                .info(new Info()
                        .title("基于层次分析法的宠物狗危险评估")
                        .description("系统接口文档描述")
                        .version("v1.0")
                        .contact(new io.swagger.v3.oas.models.info.Contact())
                );
    }



}
